#ifndef __FAST_CONBLE_DEFINE_H__
#define __FAST_CONBLE_DEFINE_H__

/*
 * @Author: chengtianming timmy_cheng@foxmail.com
 * @Date: 2023-11-25 13:39:27
 * @LastEditors: chengtianming timmy_cheng@foxmail.com
 * @LastEditTime: 2023-11-25 14:11:42
 * @FilePath: \undefinedd:\YC项目资料\6 佛山照明\7628网关\佛照需求\网关项目需求文档\需求2023112401\fast_conble_define.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#include <stdint.h>

typedef struct message_head {
    uint16_t type;
    uint16_t seq;
}__attribute__((packed)) message_head_t;

typedef struct message {
    message_head_t head;
    uint8_t body[1024];
} __attribute__((packed))  message_t;


enum BLE_TYPE {
    PROBE_REQ = 1,
    PROBE_ACK = 2,
    HEARTBEAT_REQ = 3,
    HEARTBEAT_ACK = 4,
    URL_REQ = 5,
    URL_ACK = 6,
    SHORT_ADDR_CTRL_REQ = 9,
    SHORT_ADDR_CTRL_ACK = 10,
    SCENE_CTRL_REQ = 11,
    SCENE_CTRL_ACK = 12,
    GROUP_CTRL_REQ = 13,
    GROUP_CTRL_ACK = 14,
    DATA_REPORT_REQ = 15,
    DATA_REPORT_ACK = 16,
    TRIGGER_DEV_STA_REPORT_REQ = 17,
    TRIGGER_DEV_STA_REPORT_ACK = 18,
    SET_TEMP_GROUP_REQ = 19,
    SET_TEMP_GROUP_ACK = 20,
};

#endif
